import { IMessageBase } from "../../Framework/MQ/IMessageBase";
import { MessageManager } from "../../Framework/MQ/MessageManager";
import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
type int = number;
//class STreasureCampInfo

export class STreasureCampInfo extends IMessageBase {
  constructor(arg1: Boolean = false) {
    
    super();if (arg1) {
      MessageManager.instance().regist(this);
    }
    return;
  }

  public /* override */ getType(): int {
    return this._type;
  }

  public /* override */ clone(): IMessageBase {
    return new STreasureCampInfo();
  }

  public /* override */ __write(arg1: SerializeStream): void {
    arg1.writeInt(this.camp);
    arg1.writeInt(this.rest);
    arg1.writeInt(this.guard);
    arg1.writeInt(this.seize);
    return;
  }

  public /* override */ __read(arg1: SerializeStream): void {
    this.camp = arg1.readInt();
    this.rest = arg1.readInt();
    this.guard = arg1.readInt();
    this.seize = arg1.readInt();
    return;
  }

  public /* const */ _type: int = 20532;

  public /* var */ camp!: int;

  public /* var */ rest!: int;

  public /* var */ guard!: int;

  public /* var */ seize!: int;

  public static /* var */ _regist: STreasureCampInfo = new STreasureCampInfo(
    true
  );
}
